package com.ffmpeg.opt.common.ffmpeg.handler;

import lombok.Data;

/**
 * @author: 李涛
 * @version: 2020年05月17日 17:27
 */
@Data
public class MovieTask {

    private String taskType;

    private String taskId;

    private double proess;

    private Long duration;

    private boolean success;

    private boolean broken;

    public static MovieTask build(String taskId, String taskType, Long duration) {
        MovieTask movieTask = new MovieTask();
        movieTask.setTaskId(taskId);
        movieTask.setTaskType(taskType);
        movieTask.setDuration(duration);
        return movieTask;
    }
}
